<@override name="title">
<#if oper=="create">
新建活动类型
<#else>
编辑活动类型
</#if>
</@override>
<@override name="viewbody">
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title">
            活动管理
            <small>
                <#if oper=="create">
                    创建新的活动类型
                <#else>
                    修改已有活动类型
                </#if>
            </small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="${ctx}/admin/activity/category">
                    活动类型
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    <#if oper=="create">
                        新建活动类型
                    <#else>
                        编辑活动类型
                    </#if>
                </a>
            </li>
        </ul>
    </div>
</div>

<form class="form-horizontal" action="${ctx}/admin/activity/category/save" role="form" id="dataForm" method="post">
    <div class="panel panel-default">
        <div class="panel-heading"><h6 class="panel-title">活动类型信息</h6></div>
        <div class="panel-body">
            <input name="category.id" type="hidden" value="${category.id!}"/>

            <div class="form-group">
                <label class="col-sm-2 control-label" for="category.name">类型名称: <span class="mandatory">*</span></label>

                <div class="col-sm-10">
                    <input type="text" class="required form-control" placeholder="类型名称"
                           name="category.name" id="category.name" value="${category.name!}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label">类型介绍:</label>
                <div class="col-md-10">
                    <textarea class="form-control" placeholder="类型介绍" name="category.description" rows="3">${category.description!}</textarea>
                </div>
            </div>


        </div>

        <div class="form-actions text-right">
            <a class="btn btn-info" href="${ctx}/admin/activity/category">返回</a>
            <input type="submit" value="保存" class="btn btn-primary">
        </div>

    </div>
    </div>
</form>
</@override>

<@override name="viewmodule">act_category_item</@override>
<@extends name="../../_basic/main.ftl"></@extends>